package com.wyp168.serviceedu.client;

import com.wyp168.commonutils.R;
import com.wyp168.serviceedu.client.impl.VodClientImpl;
import com.wyp168.serviceedu.entity.EduVideo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "service-vod",fallback = VodClientImpl.class)
@Component
public interface VodClient {
    @DeleteMapping("/eduvod/video/deleteVideo/{id}")
    public R deleteVideo(@PathVariable String id);

    @DeleteMapping("/eduvod/video/deleteBatchVideo")
    public R deleteBatchVideo(@RequestParam("videoIds") String videoIds);
}
